package org.truenewx.tnxjee.repo.jdbc.exception;

public class JdbcIllegalCharException extends RuntimeException {

    private String fieldName;
    private String illegalChars;

    public JdbcIllegalCharException(String fieldName, String illegalChars) {
        super("illegal chars in field [" + fieldName + "]: " + illegalChars);
        this.fieldName = fieldName;
        this.illegalChars = illegalChars;
    }

    public String getFieldName() {
        return this.fieldName;
    }

    public String getIllegalChars() {
        return this.illegalChars;
    }

}
